package online.heycm.rbac.common.config;

import online.heycm.platform.web.common.encrypt.AbstractEncryptRequestBodyAdvice;
import online.heycm.rbac.common.utils.AesUtil;
import org.springframework.web.bind.annotation.ControllerAdvice;

/**
 * RequestBody 加密
 *
 * @author heycm
 * @since 2024/1/14 18:26
 */
@ControllerAdvice(basePackages = "online.heycm.rbac.controller")
public class EncryptAdvice extends AbstractEncryptRequestBodyAdvice {

    @Override
    protected String encrypt(String s) {
        return AesUtil.encrypt(s);
    }

}
